package sddz.foodmanage.model;

import java.io.Serializable;
import java.util.List;

/**
 * @Date:2019/7/11
 * @Author:lbb
 * 完成订单数据
 */

public class DoneListBean implements Serializable {


    /**
     * message : 成功
     * status_code : 200
     * data : {"total_price":"760.00","paginator":{"total":5,"current_page":1,"page_size":15,"total_page":1,"data":[{"id":94,"number":"20190719007632","total_price":"21.00","supplier_id":75,"detachment_id":76,"type":5,"grade":1,"created_at":"2019-07-19 15:20:18","updated_at":"2019-07-20 15:54:10","goods":[{"id":408,"name":"绿豆","classification_id":3,"imgs":[{"url":"/storage/users/75/imgs/196/321563504424.jpg"},{"url":"/storage/users/75/imgs/196/481563504424.jpg"},{"url":"/storage/users/75/imgs/196/681563504461.jpg"}],"unit":"斤","price":"5.00","amount":"2.0","amount_data":2,"user_id":76,"order_id":94,"goods_id":196,"created_at":"2019-07-19 15:20:18","updated_at":"2019-07-20 09:28:21","total_price":"10.00"},{"id":409,"name":"111","classification_id":3,"imgs":[{"url":"/storage/users/75/imgs/195/441562894380.png"},{"url":"/storage/users/75/imgs/195/201562894380.jpg"},{"url":"/storage/users/75/imgs/195/471562894380.jpg"}],"unit":"11","price":"11.00","amount":"1.0","amount_data":4,"user_id":76,"order_id":94,"goods_id":195,"created_at":"2019-07-19 15:26:02","updated_at":"2019-07-20 09:28:21","total_price":"11.00"}],"detachment":{"id":76,"name":"一中队","type":2,"status":1,"avatar":"/storage/default/avatar.jpg","supplier_id":75,"service_ended_at":"2019-07-06 00:00:00","created_at":"2019-07-06 16:02:46","updated_at":"2019-07-20 14:55:37","deleted_at":null},"supplier":{"id":75,"name":"甲","type":3,"status":1,"avatar":"/storage/default/avatar.jpg","supplier_id":0,"service_ended_at":null,"created_at":"2019-07-06 15:56:01","updated_at":"2019-07-06 15:56:01","deleted_at":null},"comment":{"id":86,"grade":1,"comment":"111","imgs":[{"url":"/storage/users/76/comments/86/381563609247.png"},{"url":"/storage/users/76/comments/86/171563609247.png"}],"detachment_id":76,"supplier_id":75,"deleted_at":null,"created_at":"2019-07-20 15:54:10","updated_at":"2019-07-20 15:54:10","order_id":94,"grade_desc":"优"}}]}}
     */

    private String message;
    private int status_code;
    private DataBeanX data;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getStatus_code() {
        return status_code;
    }

    public void setStatus_code(int status_code) {
        this.status_code = status_code;
    }

    public DataBeanX getData() {
        return data;
    }

    public void setData(DataBeanX data) {
        this.data = data;
    }

    public static class DataBeanX implements Serializable{
        /**
         * total_price : 760.00
         * paginator : {"total":5,"current_page":1,"page_size":15,"total_page":1,"data":[{"id":94,"number":"20190719007632","total_price":"21.00","supplier_id":75,"detachment_id":76,"type":5,"grade":1,"created_at":"2019-07-19 15:20:18","updated_at":"2019-07-20 15:54:10","goods":[{"id":408,"name":"绿豆","classification_id":3,"imgs":[{"url":"/storage/users/75/imgs/196/321563504424.jpg"},{"url":"/storage/users/75/imgs/196/481563504424.jpg"},{"url":"/storage/users/75/imgs/196/681563504461.jpg"}],"unit":"斤","price":"5.00","amount":"2.0","amount_data":2,"user_id":76,"order_id":94,"goods_id":196,"created_at":"2019-07-19 15:20:18","updated_at":"2019-07-20 09:28:21","total_price":"10.00"},{"id":409,"name":"111","classification_id":3,"imgs":[{"url":"/storage/users/75/imgs/195/441562894380.png"},{"url":"/storage/users/75/imgs/195/201562894380.jpg"},{"url":"/storage/users/75/imgs/195/471562894380.jpg"}],"unit":"11","price":"11.00","amount":"1.0","amount_data":4,"user_id":76,"order_id":94,"goods_id":195,"created_at":"2019-07-19 15:26:02","updated_at":"2019-07-20 09:28:21","total_price":"11.00"}],"detachment":{"id":76,"name":"一中队","type":2,"status":1,"avatar":"/storage/default/avatar.jpg","supplier_id":75,"service_ended_at":"2019-07-06 00:00:00","created_at":"2019-07-06 16:02:46","updated_at":"2019-07-20 14:55:37","deleted_at":null},"supplier":{"id":75,"name":"甲","type":3,"status":1,"avatar":"/storage/default/avatar.jpg","supplier_id":0,"service_ended_at":null,"created_at":"2019-07-06 15:56:01","updated_at":"2019-07-06 15:56:01","deleted_at":null},"comment":{"id":86,"grade":1,"comment":"111","imgs":[{"url":"/storage/users/76/comments/86/381563609247.png"},{"url":"/storage/users/76/comments/86/171563609247.png"}],"detachment_id":76,"supplier_id":75,"deleted_at":null,"created_at":"2019-07-20 15:54:10","updated_at":"2019-07-20 15:54:10","order_id":94,"grade_desc":"优"}}]}
         */

        private String total_price;
        private PaginatorBean paginator;

        public String getTotal_price() {
            return total_price;
        }

        public void setTotal_price(String total_price) {
            this.total_price = total_price;
        }

        public PaginatorBean getPaginator() {
            return paginator;
        }

        public void setPaginator(PaginatorBean paginator) {
            this.paginator = paginator;
        }

        public static class PaginatorBean implements Serializable{
            /**
             * total : 5
             * current_page : 1
             * page_size : 15
             * total_page : 1
             * data : [{"id":94,"number":"20190719007632","total_price":"21.00","supplier_id":75,"detachment_id":76,"type":5,"grade":1,"created_at":"2019-07-19 15:20:18","updated_at":"2019-07-20 15:54:10","goods":[{"id":408,"name":"绿豆","classification_id":3,"imgs":[{"url":"/storage/users/75/imgs/196/321563504424.jpg"},{"url":"/storage/users/75/imgs/196/481563504424.jpg"},{"url":"/storage/users/75/imgs/196/681563504461.jpg"}],"unit":"斤","price":"5.00","amount":"2.0","amount_data":2,"user_id":76,"order_id":94,"goods_id":196,"created_at":"2019-07-19 15:20:18","updated_at":"2019-07-20 09:28:21","total_price":"10.00"},{"id":409,"name":"111","classification_id":3,"imgs":[{"url":"/storage/users/75/imgs/195/441562894380.png"},{"url":"/storage/users/75/imgs/195/201562894380.jpg"},{"url":"/storage/users/75/imgs/195/471562894380.jpg"}],"unit":"11","price":"11.00","amount":"1.0","amount_data":4,"user_id":76,"order_id":94,"goods_id":195,"created_at":"2019-07-19 15:26:02","updated_at":"2019-07-20 09:28:21","total_price":"11.00"}],"detachment":{"id":76,"name":"一中队","type":2,"status":1,"avatar":"/storage/default/avatar.jpg","supplier_id":75,"service_ended_at":"2019-07-06 00:00:00","created_at":"2019-07-06 16:02:46","updated_at":"2019-07-20 14:55:37","deleted_at":null},"supplier":{"id":75,"name":"甲","type":3,"status":1,"avatar":"/storage/default/avatar.jpg","supplier_id":0,"service_ended_at":null,"created_at":"2019-07-06 15:56:01","updated_at":"2019-07-06 15:56:01","deleted_at":null},"comment":{"id":86,"grade":1,"comment":"111","imgs":[{"url":"/storage/users/76/comments/86/381563609247.png"},{"url":"/storage/users/76/comments/86/171563609247.png"}],"detachment_id":76,"supplier_id":75,"deleted_at":null,"created_at":"2019-07-20 15:54:10","updated_at":"2019-07-20 15:54:10","order_id":94,"grade_desc":"优"}}]
             */

            private int total;
            private int current_page;
            private int page_size;
            private int total_page;
            private List<DataBean> data;

            public int getTotal() {
                return total;
            }

            public void setTotal(int total) {
                this.total = total;
            }

            public int getCurrent_page() {
                return current_page;
            }

            public void setCurrent_page(int current_page) {
                this.current_page = current_page;
            }

            public int getPage_size() {
                return page_size;
            }

            public void setPage_size(int page_size) {
                this.page_size = page_size;
            }

            public int getTotal_page() {
                return total_page;
            }

            public void setTotal_page(int total_page) {
                this.total_page = total_page;
            }

            public List<DataBean> getData() {
                return data;
            }

            public void setData(List<DataBean> data) {
                this.data = data;
            }

            public static class DataBean implements Serializable{
                /**
                 * id : 94
                 * number : 20190719007632
                 * total_price : 21.00
                 * supplier_id : 75
                 * detachment_id : 76
                 * type : 5
                 * grade : 1
                 * created_at : 2019-07-19 15:20:18
                 * updated_at : 2019-07-20 15:54:10
                 * goods : [{"id":408,"name":"绿豆","classification_id":3,"imgs":[{"url":"/storage/users/75/imgs/196/321563504424.jpg"},{"url":"/storage/users/75/imgs/196/481563504424.jpg"},{"url":"/storage/users/75/imgs/196/681563504461.jpg"}],"unit":"斤","price":"5.00","amount":"2.0","amount_data":2,"user_id":76,"order_id":94,"goods_id":196,"created_at":"2019-07-19 15:20:18","updated_at":"2019-07-20 09:28:21","total_price":"10.00"},{"id":409,"name":"111","classification_id":3,"imgs":[{"url":"/storage/users/75/imgs/195/441562894380.png"},{"url":"/storage/users/75/imgs/195/201562894380.jpg"},{"url":"/storage/users/75/imgs/195/471562894380.jpg"}],"unit":"11","price":"11.00","amount":"1.0","amount_data":4,"user_id":76,"order_id":94,"goods_id":195,"created_at":"2019-07-19 15:26:02","updated_at":"2019-07-20 09:28:21","total_price":"11.00"}]
                 * detachment : {"id":76,"name":"一中队","type":2,"status":1,"avatar":"/storage/default/avatar.jpg","supplier_id":75,"service_ended_at":"2019-07-06 00:00:00","created_at":"2019-07-06 16:02:46","updated_at":"2019-07-20 14:55:37","deleted_at":null}
                 * supplier : {"id":75,"name":"甲","type":3,"status":1,"avatar":"/storage/default/avatar.jpg","supplier_id":0,"service_ended_at":null,"created_at":"2019-07-06 15:56:01","updated_at":"2019-07-06 15:56:01","deleted_at":null}
                 * comment : {"id":86,"grade":1,"comment":"111","imgs":[{"url":"/storage/users/76/comments/86/381563609247.png"},{"url":"/storage/users/76/comments/86/171563609247.png"}],"detachment_id":76,"supplier_id":75,"deleted_at":null,"created_at":"2019-07-20 15:54:10","updated_at":"2019-07-20 15:54:10","order_id":94,"grade_desc":"优"}
                 */

                private int id;
                private String number;
                private String total_price;
                private int supplier_id;
                private int detachment_id;
                private int type;
                private int grade;
                private String created_at;
                private String updated_at;
                private DetachmentBean detachment;
                private SupplierBean supplier;
                private CommentBean comment;
                private List<GoodsBean> goods;

                //================================clc===============================================

                private String delivery_time;//送货时间字段

                private int dinner_num;//用餐人数

                //==================================================================================

                public void setDelivery_time(String delivery_time) {
                    this.delivery_time = delivery_time;
                }

                public String getDelivery_time() {
                    return delivery_time;
                }

                //审核完成时间
                private String checked_time;

                public void setChecked_time(String checked_time) {
                    this.checked_time = checked_time;
                }

                public String getChecked_time() {
                    return checked_time;
                }
                //购买类型 1标识从供货商处购买 2标识自采
                private int shopping_type;

                public void setShopping_type(int shopping_type) {
                    this.shopping_type = shopping_type;
                }

                public int getShopping_type() {
                    return shopping_type;
                }
                //==================================================================================

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getNumber() {
                    return number;
                }

                public void setNumber(String number) {
                    this.number = number;
                }

                public String getTotal_price() {
                    return total_price;
                }

                public void setTotal_price(String total_price) {
                    this.total_price = total_price;
                }

                public int getSupplier_id() {
                    return supplier_id;
                }

                public void setSupplier_id(int supplier_id) {
                    this.supplier_id = supplier_id;
                }

                public int getDetachment_id() {
                    return detachment_id;
                }

                public void setDetachment_id(int detachment_id) {
                    this.detachment_id = detachment_id;
                }

                public int getType() {
                    return type;
                }

                public void setType(int type) {
                    this.type = type;
                }

                public int getGrade() {
                    return grade;
                }

                public void setGrade(int grade) {
                    this.grade = grade;
                }

                public String getCreated_at() {
                    return created_at;
                }

                public void setCreated_at(String created_at) {
                    this.created_at = created_at;
                }

                public String getUpdated_at() {
                    return updated_at;
                }

                public void setUpdated_at(String updated_at) {
                    this.updated_at = updated_at;
                }

                public DetachmentBean getDetachment() {
                    return detachment;
                }

                public void setDetachment(DetachmentBean detachment) {
                    this.detachment = detachment;
                }

                public SupplierBean getSupplier() {
                    return supplier;
                }

                public void setSupplier(SupplierBean supplier) {
                    this.supplier = supplier;
                }

                public CommentBean getComment() {
                    return comment;
                }

                public void setComment(CommentBean comment) {
                    this.comment = comment;
                }

                public List<GoodsBean> getGoods() {
                    return goods;
                }

                public void setGoods(List<GoodsBean> goods) {
                    this.goods = goods;
                }

                public int getDinner_num() {
                    return dinner_num;
                }

                public void setDinner_num(int dinner_num) {
                    this.dinner_num = dinner_num;
                }

                public static class DetachmentBean implements Serializable{
                    /**
                     * id : 76
                     * name : 一中队
                     * type : 2
                     * status : 1
                     * avatar : /storage/default/avatar.jpg
                     * supplier_id : 75
                     * service_ended_at : 2019-07-06 00:00:00
                     * created_at : 2019-07-06 16:02:46
                     * updated_at : 2019-07-20 14:55:37
                     * deleted_at : null
                     */

                    private int id;
                    private String name;
                    private int type;
                    private int status;
                    private String avatar;
                    private int supplier_id;
                    private String service_ended_at;
                    private String created_at;
                    private String updated_at;
                    private Object deleted_at;

                    public int getId() {
                        return id;
                    }

                    public void setId(int id) {
                        this.id = id;
                    }

                    public String getName() {
                        return name;
                    }

                    public void setName(String name) {
                        this.name = name;
                    }

                    public int getType() {
                        return type;
                    }

                    public void setType(int type) {
                        this.type = type;
                    }

                    public int getStatus() {
                        return status;
                    }

                    public void setStatus(int status) {
                        this.status = status;
                    }

                    public String getAvatar() {
                        return avatar;
                    }

                    public void setAvatar(String avatar) {
                        this.avatar = avatar;
                    }

                    public int getSupplier_id() {
                        return supplier_id;
                    }

                    public void setSupplier_id(int supplier_id) {
                        this.supplier_id = supplier_id;
                    }

                    public String getService_ended_at() {
                        return service_ended_at;
                    }

                    public void setService_ended_at(String service_ended_at) {
                        this.service_ended_at = service_ended_at;
                    }

                    public String getCreated_at() {
                        return created_at;
                    }

                    public void setCreated_at(String created_at) {
                        this.created_at = created_at;
                    }

                    public String getUpdated_at() {
                        return updated_at;
                    }

                    public void setUpdated_at(String updated_at) {
                        this.updated_at = updated_at;
                    }

                    public Object getDeleted_at() {
                        return deleted_at;
                    }

                    public void setDeleted_at(Object deleted_at) {
                        this.deleted_at = deleted_at;
                    }
                }

                public static class SupplierBean implements Serializable{
                    /**
                     * id : 75
                     * name : 甲
                     * type : 3
                     * status : 1
                     * avatar : /storage/default/avatar.jpg
                     * supplier_id : 0
                     * service_ended_at : null
                     * created_at : 2019-07-06 15:56:01
                     * updated_at : 2019-07-06 15:56:01
                     * deleted_at : null
                     */

                    private int id;
                    private String name;
                    private int type;
                    private int status;
                    private String avatar;
                    private int supplier_id;
                    private Object service_ended_at;
                    private String created_at;
                    private String updated_at;
                    private Object deleted_at;

                    public int getId() {
                        return id;
                    }

                    public void setId(int id) {
                        this.id = id;
                    }

                    public String getName() {
                        return name;
                    }

                    public void setName(String name) {
                        this.name = name;
                    }

                    public int getType() {
                        return type;
                    }

                    public void setType(int type) {
                        this.type = type;
                    }

                    public int getStatus() {
                        return status;
                    }

                    public void setStatus(int status) {
                        this.status = status;
                    }

                    public String getAvatar() {
                        return avatar;
                    }

                    public void setAvatar(String avatar) {
                        this.avatar = avatar;
                    }

                    public int getSupplier_id() {
                        return supplier_id;
                    }

                    public void setSupplier_id(int supplier_id) {
                        this.supplier_id = supplier_id;
                    }

                    public Object getService_ended_at() {
                        return service_ended_at;
                    }

                    public void setService_ended_at(Object service_ended_at) {
                        this.service_ended_at = service_ended_at;
                    }

                    public String getCreated_at() {
                        return created_at;
                    }

                    public void setCreated_at(String created_at) {
                        this.created_at = created_at;
                    }

                    public String getUpdated_at() {
                        return updated_at;
                    }

                    public void setUpdated_at(String updated_at) {
                        this.updated_at = updated_at;
                    }

                    public Object getDeleted_at() {
                        return deleted_at;
                    }

                    public void setDeleted_at(Object deleted_at) {
                        this.deleted_at = deleted_at;
                    }
                }

                public static class CommentBean implements Serializable{
                    /**
                     * id : 86
                     * grade : 1
                     * comment : 111
                     * imgs : [{"url":"/storage/users/76/comments/86/381563609247.png"},{"url":"/storage/users/76/comments/86/171563609247.png"}]
                     * detachment_id : 76
                     * supplier_id : 75
                     * deleted_at : null
                     * created_at : 2019-07-20 15:54:10
                     * updated_at : 2019-07-20 15:54:10
                     * order_id : 94
                     * grade_desc : 优
                     */

                    private int id;
                    private int grade;
                    private String comment;
                    private int detachment_id;
                    private int supplier_id;
                    private Object deleted_at;
                    private String created_at;
                    private String updated_at;
                    private int order_id;
                    private String grade_desc;
                    private List<ImgsBean> imgs;

                    public int getId() {
                        return id;
                    }

                    public void setId(int id) {
                        this.id = id;
                    }

                    public int getGrade() {
                        return grade;
                    }

                    public void setGrade(int grade) {
                        this.grade = grade;
                    }

                    public String getComment() {
                        return comment;
                    }

                    public void setComment(String comment) {
                        this.comment = comment;
                    }

                    public int getDetachment_id() {
                        return detachment_id;
                    }

                    public void setDetachment_id(int detachment_id) {
                        this.detachment_id = detachment_id;
                    }

                    public int getSupplier_id() {
                        return supplier_id;
                    }

                    public void setSupplier_id(int supplier_id) {
                        this.supplier_id = supplier_id;
                    }

                    public Object getDeleted_at() {
                        return deleted_at;
                    }

                    public void setDeleted_at(Object deleted_at) {
                        this.deleted_at = deleted_at;
                    }

                    public String getCreated_at() {
                        return created_at;
                    }

                    public void setCreated_at(String created_at) {
                        this.created_at = created_at;
                    }

                    public String getUpdated_at() {
                        return updated_at;
                    }

                    public void setUpdated_at(String updated_at) {
                        this.updated_at = updated_at;
                    }

                    public int getOrder_id() {
                        return order_id;
                    }

                    public void setOrder_id(int order_id) {
                        this.order_id = order_id;
                    }

                    public String getGrade_desc() {
                        return grade_desc;
                    }

                    public void setGrade_desc(String grade_desc) {
                        this.grade_desc = grade_desc;
                    }

                    public List<ImgsBean> getImgs() {
                        return imgs;
                    }

                    public void setImgs(List<ImgsBean> imgs) {
                        this.imgs = imgs;
                    }

                    public static class ImgsBean implements Serializable{
                        /**
                         * url : /storage/users/76/comments/86/381563609247.png
                         */

                        private String url;

                        public String getUrl() {
                            return url;
                        }

                        public void setUrl(String url) {
                            this.url = url;
                        }
                    }
                }

                public static class GoodsBean implements Serializable{
                    /**
                     * id : 408
                     * name : 绿豆
                     * classification_id : 3
                     * imgs : [{"url":"/storage/users/75/imgs/196/321563504424.jpg"},{"url":"/storage/users/75/imgs/196/481563504424.jpg"},{"url":"/storage/users/75/imgs/196/681563504461.jpg"}]
                     * unit : 斤
                     * price : 5.00
                     * amount : 2.0
                     * amount_data : 2
                     * user_id : 76
                     * order_id : 94
                     * goods_id : 196
                     * created_at : 2019-07-19 15:20:18
                     * updated_at : 2019-07-20 09:28:21
                     * total_price : 10.00
                     */

                    private int id;
                    private String name;
                    private int classification_id;
                    private String unit;
                    private String price;
                    private float amount;
                    //==================================================================================
                    private String remark;
                    public void setRemark(String r){
                        this.remark = r;
                    }
                    public String getRemark(){
                        return this.remark;
                    }
                    //==================================================================================

                    public float getAmount() {
                        return amount;
                    }

                    public void setAmount(float amount) {
                        this.amount = amount;
                    }

                    public float getAmount_data() {
                        return amount_data;
                    }

                    public void setAmount_data(float amount_data) {
                        this.amount_data = amount_data;
                    }

                    private float amount_data;
                    private int user_id;
                    private int order_id;
                    private int goods_id;
                    private String created_at;
                    private String updated_at;
                    private String total_price;
                    private List<ImgsBeanX> imgs;

                    public int getId() {
                        return id;
                    }

                    public void setId(int id) {
                        this.id = id;
                    }

                    public String getName() {
                        return name;
                    }

                    public void setName(String name) {
                        this.name = name;
                    }

                    public int getClassification_id() {
                        return classification_id;
                    }

                    public void setClassification_id(int classification_id) {
                        this.classification_id = classification_id;
                    }

                    public String getUnit() {
                        return unit;
                    }

                    public void setUnit(String unit) {
                        this.unit = unit;
                    }

                    public String getPrice() {
                        return price;
                    }

                    public void setPrice(String price) {
                        this.price = price;
                    }



                    public int getUser_id() {
                        return user_id;
                    }

                    public void setUser_id(int user_id) {
                        this.user_id = user_id;
                    }

                    public int getOrder_id() {
                        return order_id;
                    }

                    public void setOrder_id(int order_id) {
                        this.order_id = order_id;
                    }

                    public int getGoods_id() {
                        return goods_id;
                    }

                    public void setGoods_id(int goods_id) {
                        this.goods_id = goods_id;
                    }

                    public String getCreated_at() {
                        return created_at;
                    }

                    public void setCreated_at(String created_at) {
                        this.created_at = created_at;
                    }

                    public String getUpdated_at() {
                        return updated_at;
                    }

                    public void setUpdated_at(String updated_at) {
                        this.updated_at = updated_at;
                    }

                    public String getTotal_price() {
                        return total_price;
                    }

                    public void setTotal_price(String total_price) {
                        this.total_price = total_price;
                    }

                    public List<ImgsBeanX> getImgs() {
                        return imgs;
                    }

                    public void setImgs(List<ImgsBeanX> imgs) {
                        this.imgs = imgs;
                    }

                    public static class ImgsBeanX implements Serializable{
                        /**
                         * url : /storage/users/75/imgs/196/321563504424.jpg
                         */

                        private String url;

                        public String getUrl() {
                            return url;
                        }

                        public void setUrl(String url) {
                            this.url = url;
                        }
                    }
                }
            }
        }
    }
}
